<%@ taglib prefix="spring-sec" uri="http://www.springframework.org/security/tags" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ attribute name="pojoDescriptor" required="true" type="com.kyub.spring.gears.model.PojoDescriptor" %>
<%@ attribute name="targetDom" required="false" type="java.lang.String" %>
<%@ attribute name="gears_restfull_prefix" required="true" %>

<spring-sec:authorize ifAnyGranted="${pojoDescriptor.allowedRoles}">
<c:if test="${empty targetDom}">
    <c:set var="targetDom" value="${pojoDescriptor.name}_list" />
</c:if>

    <c:if test="${searchable}">
             <spring:message code="${pojoDescriptor.name}.labelSearch" text="Search ${pojoDescriptor.name}"
                            htmlEscape="true"/>

            <input type="text" name="_searchString" id="_searchString"
                   value="${pageContext.request.parameterMap._searchString[0]}"/>

            <input type="button" value="Search"  onclick="doSearch()">
       
    </c:if>

    
 </spring-sec:authorize>